Skip to content

Conversation

jakepetroules
Copy link
Collaborator

@jakepetroules jakepetroules commented Jan 30, 2025

This allows building Swift Build for FreeBSD hosts, as well as building for a FreeBSD target from a FreeBSD host.

Closes #1

@jakepetroules
Copy link
Collaborator Author

Mostly ready but need a 1.4.1 tag in swift-system to pull in FreeBSD fixes, and would also like to wait for swiftlang/swift#77836 to be merged so xattrs will work.

@jakepetroules
Copy link
Collaborator Author

@swift-ci test

@jakepetroules
Copy link
Collaborator Author

@swift-ci test

@jakepetroules jakepetroules force-pushed the freebsd branch 4 times, most recently from aec7943 to d12bf06 Compare March 15, 2025 08:41
@jakepetroules jakepetroules changed the base branch from main to localfileownership March 15, 2025 08:41
@jakepetroules jakepetroules moved this to In Progress in Swift on FreeBSD Mar 18, 2025
This allows building Swift Build for FreeBSD hosts, as well as building for a FreeBSD target from a FreeBSD host.

Also adds some speculative support for targeting OpenBSD on OpenBSD hosts, since SwiftPM has minimal support.
@jakepetroules
Copy link
Collaborator Author

@swift-ci test

@jakepetroules
Copy link
Collaborator Author

@swift-ci test linux

@jakepetroules jakepetroules enabled auto-merge (rebase) June 6, 2025 01:04
let defaultProperties: [String: PropertyListItem]
switch operatingSystem {
case .linux:
case .linux, .freebsd:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the OpenBSD linker support the flag or should that be listed here too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea, I don't have an OpenBSD toolchain. I just made the "obvious" changes while I was here since at least one person is working on support for that platform.

@jakepetroules jakepetroules merged commit 5bbe231 into main Jun 6, 2025
24 checks passed
@jakepetroules jakepetroules deleted the freebsd branch June 6, 2025 03:40
@github-project-automation github-project-automation bot moved this from In Progress to Done in Swift on FreeBSD Jun 6, 2025
@jakepetroules
Copy link
Collaborator Author

Note: most of the hangs are due to an issue with Task.sleep on FreeBSD which folks are currently looking into.

@jakepetroules jakepetroules added the freebsd Support for the FreeBSD platform label Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
freebsd Support for the FreeBSD platform
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add FreeBSD support
3 participants